vulkan: Fix blendmode coordinate handling
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Oct 2017 13:00:56 +0000 (09:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 8 Oct 2017 13:02:35 +0000 (09:02 -0400)
We were node handling coordinates correctly when dealing
with differently sized child nodes in a blendmode node.
This was showing up in the gtk4-demo css blendmode example,
for blendmodes other than normal.

gsk/gskvulkanrenderpass.c

index 90c38089e4cd6b590a5cc88388719e329ddd6224..dc1a88d007e3c7674f8cda29f307e169ef9e7a32 100644 (file)
@@ -1036,14 +1036,14 @@ gsk_vulkan_render_pass_upload (GskVulkanRenderPass  *self,
                                                                             render,
                                                                             uploader,
                                                                             top,
-                                                                            &top->bounds,
+                                                                            &op->render.node->bounds,
                                                                             clip,
                                                                             &op->render.source_rect);
             op->render.source2 = gsk_vulkan_render_pass_get_node_as_texture (self,
                                                                              render,
                                                                              uploader,
                                                                              bottom,
-                                                                             &bottom->bounds,
+                                                                             &op->render.node->bounds,
                                                                              clip,
                                                                              &op->render.source2_rect);
           }